home *** CD-ROM | disk | FTP | other *** search
/ Amiga Tools 5 / Amiga Tools 5.iso / grafik / 3d & render tools / irit / man / man6 / tfromsrfs.6 < prev    next >
Encoding:
Text File  |  1996-07-16  |  1.4 KB  |  39 lines

  1. .TH TFROMSRFS
  2.  6 "IRIT Version 6.0" 
  3. .SH NAME
  4. TFROMSRFS
  5.  
  6.  
  7.  
  8.  TrivarType TFROMSRFS( ListType SrfList, NumericType OtherOrder )
  9.  
  10. Constructs a trivariate by substituting the surfaces in SrfList as
  11. planes in a control mesh of a trivariate. Surfaces in SrfList are
  12. made compatible by promoting Bezier surfaces to Bsplines if necessary,
  13. and raising degree and refining as required before substituting the
  14. control meshes of the surfaces as planes in the mesh of the trivariate.
  15. The other, third, direction order is set by OtherOrder, which cannot
  16. be larger than the number of surfaces.
  17.  
  18. The trivariate interpolates the first and last surfaces only.
  19.  
  20. Example:
  21.  
  22.     s1 = sbezier( list( list( ctlpt( E3, -0.5, -0.5, 0 ),
  23.                               ctlpt( E3, -0.5,  0.5, 0 ) ),
  24.                         list( ctlpt( E3,  0.5, -0.5, 0 ),
  25.                               ctlpt( E3,  0.5,  0.5, 0 ) ) ) ) * sc( 0.3 );
  26.     Srfs = list( s1 * sc( 2.0 ),
  27.                  s1 * sx( 1.4 ) * ry( 45 ) * tz( 1.0 ),
  28.                  s1 * ry( 90 ) * trans( vector( 1.0, 0.0, 1.1 ) ),
  29.                  s1 * sx( 1.4 ) * ry( 135 ) * trans( vector( 2.0, 0.0, 1.0 ) ),
  30.                  s1 * sc( 2.0 ) * ry( 180 ) * trans( vector( 2.0, 0.0, 0.0 ) ) );
  31.     color( Srfs, red );
  32.  
  33.     ts = tfromsrfs( Srfs, 3 );
  34.     color( ts, green );
  35.     view( list( Srfs, ts ), on );
  36.  
  37. Constructs a trivariate from five planar surfaces and display both the
  38. trivariate and the five planar surfaces, in different colors.
  39.